import request from "@/utils/request";
//设备列表
export function deviceBaseList(data) {
  return request({
    method: "post",
    url: "/waste/deviceBase/getList",
    data
  });
}

//设备保存
export function deviceBaseSave(data) {
  return request({
    method: "post",
    url: "/waste/deviceBase/save",
    data
  });
}
//设备删除
export function deviceBaseRemove(id) {
  return request({
    method: "delete",
    url: `/waste/deviceBase/remove/${id}`
  });
}

//导入设备列表 /deviceBase/importList
export function importList(data) {
  return request({
    method: "post",
    url: "/waste/deviceBase/importList",
    headers: {
      "Content-Type": "multipart/form-data"
    },
    data
  });
}
///deviceBase/exportList 导出设备列表
export function exportList(data) {
  return request({
    method: "post",
    url: "/waste/deviceBase/exportList",
    responseType: "blob",
    data
  });
}

//下载模板
export function downloadTemplate(data) {
  return request({
    method: "get",
    responseType: "blob",
    url: "/waste/deviceBase/downloadTemplate"
  });
}
